.migu-file-preview {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.5);
  .top-preview {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1001;
    display: flex;
    width: 100%;
    height: 52px;
    padding: 12px 20px;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 1); /* 完全不透明的黑色 */
    .title {
      color: #ffffff;
      font-size: 18px;
      font-style: normal;
      font-weight: 600;
      line-height: 26px; /* 144.444% */
      width: 400px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .buttons {
      display: flex;
      align-items: center;
      gap: 16px;
    }
  }
  .common-box-mixin {
    background: #ffffff;
    background-clip: padding-box;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
    pointer-events: auto;
  }
  .text-preview-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto;
    margin-top: 52px;
    height: calc(100vh - 52px);
    .text-preview {
      margin: 24px 0;
      max-width: 900px;
      width: 80%;
      min-width: 600px;
      padding: 36px;
      .common-box-mixin();
    }
  }
  .picture-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 52px;
    height: calc(100vh - 52px);
    img {
      max-width: 80%;
      max-height: calc(100vh - 200px);
      margin: 24px 0 60px 0;
      .common-box-mixin();
    }
    .ant-image-preview-close {
      display: none;
    }
  }
  .office-preview {
    margin-top: 20px; // 为了适配onlyOffice遮挡顶部信息
  }
  .office-left-mask {
    position: fixed;
    margin-top: 52px;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 101;
    width: 40px;
    height: calc(100vh - 76px);
    background: #555555;
  }
}
